package com.lagou.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SpringConfig {

    /**
     * 定义队列
     */
    @Bean
    public Queue queue() {
        return new Queue("MyQueue", true, false, true, null);
    }

}
